home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Linux Cubed Series 7: Sunsite
/
Linux Cubed Series 7 - Sunsite Vol 1.iso
/
system
/
serial
/
modemsta.000
/
modemsta
/
README.modemstat
< prev
Wrap
Text File
|
1995-09-20
|
2KB
|
57 lines
Modem Status Lights For Linux Console
-------------------------------------
What it does
~~~~~~~~~~~~
This very simple utility puts a modem box at the top of the Linux console
screen. The serial lines monitored are RTS, CTS, DSR, DTR, CD, and RING.
TR and RD are not monitored.
The main purpose of modemstat is to let you know that you are still online.
I have found that when I am using the Internet via a SLIP connection, I
occasionally get cut off. The status box at the top of the screen lets me
know as soon as I am offline.
Modemstat is similar to and inspired by statserial by Jeff Tranter.
However, statserial doesn't run as a daemon, doesn't provide a small
and convenient display, and exits when you hang up. I wrote modemstat from
scratch once I saw how easy such a program would be to write. I'm new
to Unix programming, so Modemstat doesn't use anything fancy, it uses
simple ANSI escape sequences. There is a *lot* of room for improvement.
I would really like to be able to add TR/RD lights (anyone care to do
this???), and use ncurses.
Using modemstat
~~~~~~~~~~~~~~~
USAGE: modemstat [/dev/devicename]
If the device name is not specified, it defaults to /dev/modem.
The display shows the name of the device being monitored, and is updated
once per second. Green means the signal is present, red means it is not.
Yellow means that there was some problem obtaining the status of the
device. In this case, the device is closed and re-opened.
Since modemstat runs as a daemon, you will have to kill it with the kill
command if you want to get rid of it. The PID is displayed in the title
bar along with the device and online status.
Modemstat does not work properly of you are using it in a shell in
X-Windows. It works only in a regular console (anyone want to fix this?).
That's all folks
~~~~~~~~~~~~~~~~
Modemstat is public domain. I accept no responsibility for it's performance
or lack thereof. Use is entirely at your own risk. If you update modemstat
(which should be very easy to do) I would appreciate it if you sent me the
updated version!
Send bug reports, comments, updated versions, etc, to madsci@mi.net
--------------
Doug McLean
madsci@mi.net